package cn.sccl.mybatis.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 饶爽
 * @time 2019年9月24日 下午11:18:39
 * @version 1.0.0
 * 订单实体类
*/
public class Orders implements Serializable{

    private static final long serialVersionUID = 1L;
    
    private Integer id;
    private Integer userId;
    private String number;
    private Date createtime;
    private String note;
    //附加对象  用户对象
    private User user;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public String getNumber() {
        return number;
    }
    public void setNumber(String number) {
        this.number = number;
    }
    public Date getCreatetime() {
        return createtime;
    }
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    public String getNote() {
        return note;
    }
    public void setNote(String note) {
        this.note = note == null ? null : note.trim();;
    }
    public User getUser() {
        return user;
    }
    public void setUser(User user) {
        this.user = user;
    }
    @Override
    public String toString() {
        return "Orders [id=" + id + ", userId=" + userId + ", number=" + number + ", createtime=" + createtime
                + ", note=" + note + ", user=" + user + "]";
    }
}
